package SGEngine2

var (
	mats map[string]*Material = make(map[string]*Material)
)

func MaterialAdd(mat *Material) {
	mats[mat.MaterialName] = mat
}
func MaterialGet(name string) *Material {
	return mats[name]

}

type Material struct {
	MaterialName string
	Shader       *Shader
	Tex          *Image
	IsTrans      bool
}
